'use strict';
module.exports = app => {
  const { router, controller } = app;
  router.get('/api', controller.home.index);
  router.post('/api/signup', controller.user.signup);
  router.post('/api/signin', controller.user.signin);
  router.post('/api/validate', controller.user.validatePass);
  router.post('/api/changePass', controller.user.changePass);
  router.post('/api/update', controller.user.updateInfo);
};
